//
//  DiscoverService.h
//  FM
//
//  Created by 王方伟 on 2017/12/5.
//  Copyright © 2017年 wfw. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DiscoverResponse.h"
#import "DiscoverRequest.h"
#import "RecommendRequest.h"
#import "RecommendResponse.h"


@interface DiscoverService : NSObject

/**
 获取发现标题

 @param request DiscoverRequest
 @param success DiscoverResponse
 @param failure NSError
 @return NSURLSessionDataTask
 */
+ (NSURLSessionDataTask *)getDistcoverTitleWith:(DiscoverRequest *)request success:(void (^)(DiscoverResponse *response))success failure:(void (^)(NSError *error))failure;


/**
 获取榜单模块广告列表

 @param request 请求参数
 @param success 成功参数
 @param failure 失败参数
 @return 返回数据
 */
+ (NSURLSessionDataTask *)getFocusListWith:(RecommendRequest *)request success:(void (^)(RecommendResponse *response))success failure:(void (^)(NSError *error))failure;
@end
